package xyz.robinbingo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    HelloProperties helloProperties;

    public IndexController(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    @GetMapping("/")
    public String index() {
        return helloProperties.getName() + "欢迎您";
    }
}